package cn.stylefeng.guns.modular.api;

import cn.stylefeng.guns.modular.business.service.AskedQuestionService;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author pzp .
 * @Date 2019/7/3015:57
 */

@RestController
@RequestMapping("/gunsApi/askedQuestion")
public class AskedQuestionApi {


    @Autowired
    private AskedQuestionService askedQuestionService;

    @ApiOperation("获取常见问题列表")
    @GetMapping("/get")
    public ResponseData get(@RequestParam Integer current,@RequestParam Integer size) {
        return ResponseData.success(askedQuestionService.get(current, size));
    }
}
